@import "../common/common";
@import "../common/base";

@menu_bg_color: #5c5b65;
@menu_hover_bg_color: #5c5b65;
@menu_border_color: hsla(0, 0%, 100%, .2);
@menu_item_color: #ccc;
@menu_item_bg_color: #19233C;
@menu_item_hover_bg_color: #5b5a64;
@menu_item_active_border_left_color: rgb(66, 128, 242);

.zy-menu {

  /deep/ .el-menu {
    &:not(.el-menu--collapse) {
      width: 100%;
    }

    //&.el-menu--collapse{
    //  .el-submenu__title{
    //    padding-left: 24px !important;
    //  }
    //}
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    font-size: 13px;
    -ms-overflow-style: none;

    border: none;

    background-color: @menu_item_bg_color !important;

    .menu_icon {
      width: 24px;
      text-align: center;

      color: @allWhite;
    }

    .el-submenu__title {
      font-size: 14px;
      height: 56px;
      line-height: 56px;
      padding-left: 32px !important;
      padding-right: 32px !important;
      color: @allWhite;
      background: @menu_item_bg_color;

      & i {
        color: @allWhite;
      }

      &:hover {
        background: @allBgBlue;
      }

      .el-submenu__icon-arrow {
        right: 30px;
      }

      .zy-iconfont {
        margin-right: 16px;
        font-size: 20px;
        width: 20px;
        height: 21px;
      }
    }

    .el-menu-item {
      font-size: 14px;
      height: 56px;
      line-height: 56px;
      padding-left: 32px !important;
      background-color: @menu_item_bg_color;
      color: @allWhite;

      &:hover, &.active {
        color: @allWhite;
        background-color: @allBgBlue;
      }

      &.active {
        border-left: none;
      }
    }

    .el-submenu .el-menu-item {
      min-width: 180px;
      padding: 0 54px !important;
    }

    //.is-opened{
    //  .el-submenu__title{
    //    color: @allPrimaryColor;
    //    i{
    //      color: @allPrimaryColor;
    //    }
    //  }
    //}
    &.el-menu--collapse{
      .el-submenu__title {
        padding-left: 20px !important;
        padding-right: 20px !important;
        span{
          opacity: 0;
        }
      }
      .el-menu-item{
        padding-left: 20px !important;
        span{
          opacity: 0;
        }
      }
    }
  }
  /deep/ .el-menu-item {
    .zy-iconfont {
      margin-right: 16px;
      font-size: 20px;
      width: 20px;
      height: 21px;
      color: @allWhite;
    }
  }

}

@media screen and (max-width: 1440px) {
  .zy-menu /deep/ .el-menu{
    .el-submenu__title{
      padding-left: 24px !important;
    }
    .el-menu-item{
      padding-left: 48px !important;
    }
  }
}

@media (min-width: 1280px) and (max-width: 1680px) {
  .zy-menu /deep/ .el-menu{
    .el-submenu__title{
      padding-left: 24px !important;
    }
    .el-menu-item{
      padding-left: 24px !important;
    }
  }
}
